#include"Test4.h"
#include <iostream>
using namespace std;
Test4::Test4(){
        m_a = 0;
        m_b = 0;
        cout<<"无参构造函数"<<endl;
}
Test4::Test4(int a){
        m_a = a;
        m_b = 0;
        cout<<"有参构造函数 初始化m_a"<<endl;
}
Test4::Test4(int a, int b){
        m_a = a;
        m_b = b;
        cout<<"有参构造函数 初始化m_a m_b"<<endl;
}
Test4::Test4(const Test4 &object){
        m_a = object.m_a + 100;
        m_b = object.m_b + 100;
        cout<<"拷贝构造函数 初始化m_a m_b"<<endl;
}
void Test4::print(){
        cout<<"普用成员函数"<<endl;
        cout<<"m_a="<<m_a<<", m_b="<<m_b<<endl;
}
Test4::~Test4(){
        cout<<"析够函数"<<endl;
}